package com.cyf.smartCity.service;

import com.cyf.db.bean.LocalCarWarning;
import com.cyf.util.CommonRsp;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author hfy
 * @date 2018/12/10
 */
public interface LocalCarWarningService {

    /**
     * 添加预警车辆
     *
     * @param carWarning
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    CommonRsp addWarningCar(LocalCarWarning carWarning);

    /**
     * 修改预警车辆
     *
     * @param id
     * @param plate
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    CommonRsp editWarningCar(Integer id, String plate);

    /**
     * 删除预警车辆
     *
     * @param id
     */
    @Transactional(rollbackFor = Exception.class)
    void deleteById(Integer id);
}
